projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48b37c3
)
Have X builds handle VisibilityNotify events (Bug#48268, Bug#48413)
author
Martin Rudalics
<rudalics@gmx.at>
Sat, 15 May 2021 07:20:50 +0000
(09:20 +0200)
committer
Martin Rudalics
<rudalics@gmx.at>
Sat, 15 May 2021 07:20:50 +0000
(09:20 +0200)
* src/xterm.c (handle_one_xevent): Handle VisibilityNotify
events (Bug#48268, Bug#48413).
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index bdf0804f89546e9b983cd1e290d7fb3ed59dd0fd..1887c3255d4c3d601816de44b493734dc8ead042 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-9343,6
+9343,11
@@
handle_one_xevent (struct x_display_info *dpyinfo,
goto OTHER;
case VisibilityNotify:
+ f = x_top_window_to_frame (dpyinfo, event->xvisibility.window);
+ if (f && (event->xvisibility.state == VisibilityUnobscured
+ || event->xvisibility.state == VisibilityPartiallyObscured))
+ SET_FRAME_VISIBLE (f, 1);
+
goto OTHER;
case MappingNotify: